import unittest
from common.logging_use import init_log_config
from config import app_path
from scripts.itheima_MemberService_case import Test_itheima_MS
from htmltestreport import HTMLTestReport

from scripts.itheima_UserService_case import Test_itheima_US

init_log_config(app_path + "/log/itheima.log")
# suite = unittest.TestSuite()
# suite.addTest(unittest.makeSuite(Test_itheima_MS))
# suite.addTest(unittest.makeSuite(Test_itheima_US))
suite = unittest.TestLoader().discover(app_path + '/scripts', pattern='*_case.py')
run = HTMLTestReport(app_path + "/report/itheima.html", "传智健康测试报告", "关于传智健康的会员服务测试报告")
run.run(suite)
